package com.sike.netty.jinjie.bytebuf.leakdetector;

import io.netty.buffer.ByteBuf;
import io.netty.buffer.PooledByteBufAllocator;

public class LeakDetectorTest {
    public static void main(String[] args) throws InterruptedException {
        ByteBuf byteBuf = PooledByteBufAllocator.DEFAULT.buffer(1024);
        byteBuf = null;
        System.gc();
        Thread.sleep(1000);

        PooledByteBufAllocator.DEFAULT.buffer(1024);
    }
}
